import React,{Component} from 'react'
import {Link} from 'react-router-dom'
export default class IRouter extends Component {
    render(){
        return (
            <div>
                <ul>
                    <li><Link to="/">Home</Link></li>
                    <li><Link to="/topic">Topic</Link></li>
                    <li><Link to="/about">About</Link></li>
                </ul>
                <hr />
                {this.props.children}
            </div>
        )
    }
}